4. Serial Interface Control Commands > 4.6 AT+ICF   Serial Interface Character Framing

4.6
AT+ICF   Serial Interface Character Framing
The command AT+ICF controls the serial interface character framing format and parity used for receiving and transmitting.

The following settings are supported:
•
•
•
•
•
•
Syntax
Test Command  
Response(s)
+ICF: (list of supported <format>s), (list of supported <parity>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Parameter Description
 
<format>(num)(&W)(&V)
Specifies the character format used for receiving and transmitting.
1
8 data 0 parity 2 stop
2
8 data 1 parity 1 stop
[3](D)
8 data 0 parity 1 stop
5
7 data 1 parity 1 stop
 
<parity>(num)(&W)(&V)
Specifies the method of calculating the parity bit, if a parity bit is supported by <format>.
If <format> does not support parity, this parameter has to be omitted.
0
odd
1
even

Notes
•
If AT+ICF modes 7E1 or 7O1 are set, the parity bit will by default not be transmitted over the air. If the remote party expects the parity bit to be transmitted, additional settings are required via AT^STPB.
•
When using a bit rate of 300 bps there must be a delay of 500ms before entering the next command. At bit rates of 1200 bps the delay must be 300ms. For higher bit rates use of the default delay is sufficient.
•
TC65's autobaud feature detects the bit rate currently used by the TE. However, this detection suffers some limitations described in Section 4.9.1, Autobauding. If autobauding is enabled, the AT+ICF read command does not show the current character framing, but the character framing that will be used when autobauding is disabled.
•
For compatibility reasons, the command can be used in Multiplex mode, though the settings will not take effect. Please note that changes made on multiplex channel 1 will be saved with AT&W and will become active when restarting the ME after AT^SMSO.
•
•
If a <format> is selected without parity (e.g. <format>=3) and you try to activate a format with parity (e.g. <format>=2), you need to explixitly set the parameter <parity> (e.g. AT+ICF=2,1). Otherwise you will get '+CME ERROR: invalid index'. This is because for <format>=3, the parameter <parity> is set to the inter­nal value 'no parity' which is not supported by <format>=2. (Remember that if an optional parameter is omit­ted for which no default is stated in this specification, the value of the parameter remains unchanged).